Searcher

class Searcher<C : Searcher.SearchContent>(searchEntries: List<C>)

Searches provided inputs by name and/or description with optional search decorators

Author

fzzyhmstrs

Since

0.6.0

Parameters

C

subclass of SearchContent

searchEntries

List<C> list of SearchContent entries to search through.

Constructors

Link copied to clipboard
constructor(searchEntries: List<C>)

Types

Link copied to clipboard
interface SearchContent

A searchable item. It can provide a name, an optional description, and whether it should be skipped in the current search.

Functions

Link copied to clipboard
fun search(searchInput: String): List<C>

Searches input entries with the provided input string. This search is case-insensitive.